const words = [
    '❤️',
    '好','爱','好','爱','欣','欣','呀',
    '好','爱','好','爱','欣','欣','呀',
    '好','爱','好','爱','欣','欣','呀',
    '好','爱','好','爱','欣','欣','呀',
    '好','爱','好','爱','欣','欣','呀'];
const dom = {
    love: document.querySelector('.love')
}

dom.love.style.setProperty('--particles', words.length)

words.forEach((word, i) => {
    let span = document.createElement('span')
    span.style.setProperty('--n', i + 1)
    span.innerText = word
    dom.love.appendChild(span)
})